package com.website.dayouziblog.service;

import com.website.dayouziblog.model.DO.UserDO;
import com.website.dayouziblog.model.DTO.UserDTO;
import com.website.dayouziblog.model.VO.UserVO;
import com.website.dayouziblog.model.entity.PageBean;

public interface UserService {

    /**
     * 注册入库功能
     * @param userDTO
     * @return
     */
    Boolean registIn(UserDTO userDTO);

    /**
     * 分页查询所有用户
     * @param page
     * @param pageSize
     * @return
     */
    PageBean findAllUser(Integer page, Integer pageSize);


    /**
     * 登录接口
     * @param userDTO
     * @return
     */
    UserVO login(UserDTO userDTO);

    /**
     * 根据id删除用户
     * @param id
     * @return
     */
    Boolean deleteUser(String id);

    /**
     * 修改用户
     * @param userDTO
     * @return
     */
    Boolean updateUser(UserDTO userDTO);
}
